from py.organizer.file import SpecifyFileOrganizer
import re

if __name__ == "__main__":
    # 示例配置
    classifications = {
        "[wechat]": r"[Ww]e[Cc]hat.*\.(jpeg|jpg)$",
        "[screenshot]": r"[sS]creenshot.*\.(png|jpg)$"
    }

    # 使用 SpecifyFileOrganizer
    # scan_dir = "/Volumes/My Passport/AAA/output_aaa"
    scan_dir = "/Volumes/郭福娜/Jingwei-backup/1-My/手机照片、视频/"
    output_dir = "/Volumes/My Passport/AAA/output_my/"
    organizer = SpecifyFileOrganizer(scan_dir, output_dir, classifications)
    organizer.organize_files()

    print("done")
